/**
 * 
 */
package grimbo.goodwinfooty.service.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class FootyMatrix implements Serializable {
	private static final long serialVersionUID = 1935480462340811906L;
	private List games = new ArrayList();
	private List players = new ArrayList();

	public void addGame(Game game) {
		games.add(game);
	}

	public void addPlayer(Player player) {
		players.add(player);
	}

	public Game getGame(int i) {
		return (Game) games.get(i);
	}

	public List getGames() {
		return games;
	}

	public Player getPlayer(int i) {
		return (Player) players.get(i);
	}

	public List getPlayers() {
		return players;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
				.append("games", games).toString();
	}
}